# Author: Yubin Lim(purewell@gmail.com)
# Date: 2008-01-18
# License: BSD License
# Copyright: All rights reserved by Yubin Lim.

include (Documentation)
find_package(Doxygen)
if (DOXYGEN)
	if (DOT)
		set(HAVE_DOT "YES")
		set(CLASS_DIAGRAMS "NO")
	else (DOT)
		set(HAVE_DOT "NO")
		set(CLASS_DIAGRAMS "YES")
	endif (DOT)

	if (UNIX)
		set(GENERATE_MAN "YES")
	else(UNIX)
		set(GENERATE_MAN "NO")
	endif(UNIX)

	configure_file(Doxyfile.in "${PROJECT_SOURCE_DIR}/doc/Doxyfile")
	add_custom_target(doc COMMAND ${DOXYGEN})
endif (DOXYGEN)


